netfilter: nat: Avoid ABI change in 4.13.13
authorBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:00:59 +0000 (21:00 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:04:10 +0000 (21:04 +0000)
commitec854b1fcaf63b77f54acbd7685ea3525023836c
treef1885f6b337ccad516376eaf180a5965a8881b99
parent918201ea2fc6f31fa5b49cf685df7dd5038bc609
netfilter: nat: Avoid ABI change in 4.13.13

Commit e1bf1687740c ("netfilter: nat: Revert "netfilter: nat: convert
nat bysrc hash to rhashtable") changed the type of
nf_conn::nat_bysource.  Thankfully the two types are the same size,
and nothing outside of nf_nat_core touches this field directly.  Hide
the change from genksyms but add compile-time assertions to make sure
that this isn't an ABI change.

Gbp-Pq: Topic debian
Gbp-Pq: Name netfilter-nat-avoid-abi-change-in-4.13.13.patch
include/net/netfilter/nf_conntrack.h
include/net/netfilter/nf_nat.h
net/netfilter/nf_nat_core.c